<%@ Page Title="" Language="C#" MasterPageFile="~/Content.master" AutoEventWireup="true"
    CodeFile="Page.aspx.cs" Inherits="Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

      <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:HiddenField runat="server" ID="SortOrder" />
        <input type="hidden" name="rijkey" id="rijkey" />
        <input type="hidden" name="idkey" id="idkey" />
    <br />
        <div class="DataGrid">
            <asp:DataGrid runat="server" ID="PageGrid1" CellPadding="0"
                OnItemCreated="CreateItem" OnItemDataBound="BoundItem" 
                AutoGenerateColumns="False"
                GridLines="None">
                <PagerStyle Visible="false" />
                <HeaderStyle CssClass="Header" />
                <ItemStyle CssClass="Row1" />
                <AlternatingItemStyle CssClass="Row2" />
                <Columns>
                    <asp:BoundColumn DataField="PAG_ID" HeaderText="&nbsp;" />
                    <asp:BoundColumn DataField="PAG_TITLE"  HeaderText="Title" />
                    <asp:BoundColumn DataField="PAG_CONTENT" HeaderStyle-CssClass="substring" ItemStyle-CssClass="substring" HeaderText="Content" />
                    <asp:BoundColumn DataField="PAG_VISIBLE" HeaderText="Visible" />
                </Columns>
            </asp:DataGrid>
        </div>
        <div class="DataGridFooter">
            <div class="Arrows">
                    <asp:ImageButton runat="server" ID="BtnFirst" OnClick="BtnFirst_Click" /><asp:ImageButton
                        runat="server" ID="BtnPrev" OnClick="BtnPrev_Click" /><asp:ImageButton runat="server"
                            ID="BtnNext" OnClick="BtnNext_Click" /><asp:ImageButton runat="server" ID="BtnLast"
                                OnClick="BtnLast_Click" /></div>
            <span class="Amounts">
                <asp:Label runat="server" ID="amtRecords"></asp:Label>&nbsp;<asp:Literal runat="server"
                    ID="wrdRecords" /></span> <span class="Pages">
                        <asp:Literal ID="ltPage" runat="server" />&nbsp;<% Response.Write(PageGrid1.CurrentPageIndex + 1);%>&nbsp;<asp:Literal
                            ID="ltOf" runat="server" />&nbsp;<% Response.Write(PageGrid1.PageCount);%></span>
        </div>
        <span class="DataGridButtons">
            <asp:Button runat="server" data-role="none" CssClass="Button" Text="Add" UseSubmitBehavior="false" ID="BtnNew" OnClick="BtnNew_Click" />
            <asp:Button runat="server" data-role="none" CssClass="Button" Text="Edit"  UseSubmitBehavior="false" Enabled="false" ID="BtnEdit" />
            <asp:Button runat="server" data-role="none" CssClass="Button" Text="Delete"  UseSubmitBehavior="false" Enabled="false" ID="BtnDel" />
        </span>
    
    </asp:Content>
